import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { WeatherModule } from './weather/weather.module';
import { PostsModule } from './posts/posts.module';
import { TypegooseModule } from 'nestjs-typegoose';
import { ChatGptModule } from './chat-gpt/chat-gpt.module';

@Module({
  imports: [
    TypegooseModule.forRoot('mongodb://localhost/nest-blog-api'),
    WeatherModule,
    PostsModule,
    ChatGptModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
